Re: [campsite-support] impossible to log into admin (after fresh install)
  • This happens because you don't have APC installed. Please connect to the
    Campsite database using the mysql client. Type:

    mysql -u [dbuser] -p [campsite_db]

    in a shell and then the following SQL command:

    UPDATE SystemPreferences SET SiteCacheEnabled = 'N';

    Then go back to the admin interface and try to log in again.

    Mugur

    On Wed, Jan 28, 2009 at 12:23 AM, wrote:

    > Hi,
    >
    > just run a fresh installation of Campsite 3.1.2 (on a shared server).
    > I manage to get to see the admin login-screen, enter the ID and password
    > and than all I see is this error:
    >
    > Fatal error: Call to a member function fetch() on a non-object in
    > /mypath/www/campsite/classes/DatabaseObject.php on line 869
    >
    > Please help!
    >
    > Thank you
    > Chris
    >
  • 11 Comments sorted by
  • Hi,

    As mentioned, I am using a shared server.
    How am I suppose to do the changes you have mentioned, if I have no access to the mysql settings ??!
    And no, the hosting company is not going to change that for me Sad

    During installation I have read the following:

    "... Exception is APC. We highly recommend to enable PHP APC caching system so that your site will perform much better. However, this is not mandatory and you still will be able to continue with the installation process."

    So as far as I understand, it should also work without this APC.

    Is this statement during installation correct? If yes, why can't I login into admin without having this APC installed !?!??!

    What else can be done to still be able to login (I am using a shared server, have no APC and no possibility to change that ...)

    Thank you!

    Chris




    --- Mugur Rus schrieb am Fr, 30.1.2009:

    > Von: Mugur Rus
    > Betreff: Re: [campsite-support] impossible to log into admin (after fresh install)
    > An: campsite-support@campware.org
    > Datum: Freitag, 30. Januar 2009, 21:14
    > This happens because you don't have APC installed.
    > Please connect to the
    > Campsite database using the mysql client. Type:
    >
    > mysql -u [dbuser] -p [campsite_db]
    >
    > in a shell and then the following SQL command:
    >
    > UPDATE SystemPreferences SET SiteCacheEnabled > 'N';
    >
    > Then go back to the admin interface and try to log in
    > again.
    >
    > Mugur
    >
    > On Wed, Jan 28, 2009 at 12:23 AM,
    > wrote:
    >
    > > Hi,
    > >
    > > just run a fresh installation of Campsite 3.1.2 (on a
    > shared server).
    > > I manage to get to see the admin login-screen, enter
    > the ID and password
    > > and than all I see is this error:
    > >
    > > Fatal error: Call to a member function fetch() on a
    > non-object in
    > > /mypath/www/campsite/classes/DatabaseObject.php on
    > line 869
    > >
    > > Please help!
    > >
    > > Thank you
    > > Chris
    > >
  • Hi Chris,

    I'm not talking about mysql settings. I'm talking about the Campsite
    database. Since Campsite was able to install and was able to create a
    database then you surely are able to access that database. Just connect to
    Campsite database and run this query:

    mysql -u [dbuser] -p [campsite_db]

    Mugur

    On Sat, Jan 31, 2009 at 10:19 PM, wrote:

    > Hi,
    >
    > As mentioned, I am using a shared server.
    > How am I suppose to do the changes you have mentioned, if I have no access
    > to the mysql settings ??!
    > And no, the hosting company is not going to change that for me Sad
    >
    > During installation I have read the following:
    >
    > "... Exception is APC. We highly recommend to enable PHP APC caching system
    > so that your site will perform much better. However, this is not mandatory
    > and you still will be able to continue with the installation process."
    >
    > So as far as I understand, it should also work without this APC.
    >
    > Is this statement during installation correct? If yes, why can't I login
    > into admin without having this APC installed !?!??!
    >
    > What else can be done to still be able to login (I am using a shared
    > server, have no APC and no possibility to change that ...)
    >
    > Thank you!
    >
    > Chris
    >
  • Please pass the scotch!


    ----- Original Message -----
    From: Mugur Rus
    To: campsite-support@campware.org
    Sent: Saturday, January 31, 2009 2:48 PM
    Subject: Re: Re: [campsite-support] impossible to log into admin (after fresh install)


    Hi Chris,

    I'm not talking about mysql settings. I'm talking about the Campsite database. Since Campsite was able to install and was able to create a database then you surely are able to access that database. Just connect to Campsite database and run this query:

    mysql -u [dbuser] -p [campsite_db]

    Mugur


    On Sat, Jan 31, 2009 at 10:19 PM, wrote:

    Hi,

    As mentioned, I am using a shared server.
    How am I suppose to do the changes you have mentioned, if I have no access to the mysql settings ??!
    And no, the hosting company is not going to change that for me Sad

    During installation I have read the following:

    "... Exception is APC. We highly recommend to enable PHP APC caching system so that your site will perform much better. However, this is not mandatory and you still will be able to continue with the installation process."

    So as far as I understand, it should also work without this APC.

    Is this statement during installation correct? If yes, why can't I login into admin without having this APC installed !?!??!

    What else can be done to still be able to login (I am using a shared server, have no APC and no possibility to change that ...)

    Thank you!

    Chris
  • Hi all,

    I change the file release on sourceforge a little. Plugins can now be found in an seperate release tree. The current is compatible with campsite from version 3.1.3-rc1 and for the 3.2 branch.

    Visit https://sourceforge.net/project/showfiles.php?group_idf936&package_id01782&release_ide7964 for download.

    Sebastian
  • Hi!

    If I have an article that I translate in another language, what is the
    normal way of viewing it?
    It is quite logical how to translate it in admin but can't get it
    visible anywhere. I'm using the template 4 as modified for the site.

    I would like to have an article in default language and in itself some
    link for other language available (a flag for example), not the whole
    site because the whole site would never been in all languages
    available anyway.

    Br, Gene
  • Hi,

    I tried to make a list in the article-content.tpl like this:

    {{ list_articles length="10" ignore_language="true" }}

    Related languages



    {{ /list_articles }}

    I'm not sure if the "ignore_language="true" means that it should list
    all the languages or what does it mean.
    If I have an article "Winter day" in English, how do I make a list of
    article translations in the end of this article?

    It can't be hard-coded per article but dynamic that it always dig the
    translations for the article.
    Earlier when reading the feature list I understood this would be
    somewhat simple with this system.
    Maybe it is but there are no examples how to do it. Just getting
    desperate here.

    G

    On 3.2.2009, at 8.19, Generare Management Department wrote:

    > Hi!
    >
    > If I have an article that I translate in another language, what is
    > the normal way of viewing it?
    > It is quite logical how to translate it in admin but can't get it
    > visible anywhere. I'm using the template 4 as modified for the site.
    >
    > I would like to have an article in default language and in itself
    > some link for other language available (a flag for example), not the
    > whole site because the whole site would never been in all languages
    > available anyway.
    >
    > Br, Gene

    Generare Oy,
    Management Department

    Y-tunnus: 0916805-3
    Helsinki, Finland
    http://www.generare.com
    mailto:management@generare.com
    Tel. +358 50 5149025
    Fax +358 50 78000574
  • Hi,

    First you must make sure that the issue and the article that were translated
    are published.

    E.g.: if you translated an article from English to Swedish Campsite will
    automatically create the Swedish translations of the article issue and
    section. Publish the Swedish issue and the Swedish translation of the
    article.

    Use the translated_to() function in order to find out if an
    article was translated to a certain language. See this page:
    http://code.campware.org/manuals/campsite/3.1/index.php?id=179

    E.g.:
    {{ if $campsite->article->translated_to('sv')
    && $campsite->language->code != 'sv' }}
    {{ local }}
    {{ set_language name="Swedish" }}
    Swedish translation
    {{ /local }}
    {{ /if }}

    Very important: because of a bug I just discovered for this to work you must
    set:

    1. the Swedish issue "URL name" must be the same with the English issue
    "URL name" (see also
    http://code.campware.org/manuals/campsite/3.1/index.php?id=33)
    2. the Swedish section "URL name" must be the same with the English
    section "URL name" (see also
    http://code.campware.org/manuals/campsite/3.1/index.php?id=34)

    I'll let you know when I fix this bug so you can set different URL names for
    different translations.

    Mugur

    On Wed, Feb 4, 2009 at 12:28 PM, Generare Management Department <
    management@generare.com> wrote:

    > Hi,
    >
    > I tried to make a list in the article-content.tpl like this:
    >
    > {{ list_articles length="10" ignore_language="true" }}
    >

    >

    Related languages


    >

    > {{ /list_articles }}
    >
    > I'm not sure if the "ignore_language="true" means that it should list all
    > the languages or what does it mean.
    > If I have an article "Winter day" in English, how do I make a list of
    > article translations in the end of this article?
    >
    > It can't be hard-coded per article but dynamic that it always dig the
    > translations for the article.
    > Earlier when reading the feature list I understood this would be somewhat
    > simple with this system.
    > Maybe it is but there are no examples how to do it. Just getting desperate
    > here.
    >
    > G
    >
    >
    > On 3.2.2009, at 8.19, Generare Management Department wrote:
    >
    > Hi!
    >>
    >> If I have an article that I translate in another language, what is the
    >> normal way of viewing it?
    >> It is quite logical how to translate it in admin but can't get it visible
    >> anywhere. I'm using the template 4 as modified for the site.
    >>
    >> I would like to have an article in default language and in itself some
    >> link for other language available (a flag for example), not the whole site
    >> because the whole site would never been in all languages available anyway.
    >>
    >> Br, Gene
    >>
    >
    > Generare Oy,
    > Management Department
    >
    > Y-tunnus: 0916805-3
    > Helsinki, Finland
    > http://www.generare.com
    > mailto:management@generare.com
    > Tel. +358 50 5149025
    > Fax +358 50 78000574
    >
    >
    >
    >
  • Hi,

    thanks a lot! It worked (tried with Finnish language) and of course
    I'll need to make a list of languages there to always get the language
    that current article has been translated to.

    One further question about languages:
    it seems that I have some encoding issue on the site with Finnish and
    Swedish.
    We are running 3.1.2 but is this fix below valid for that too?
    http://code.campware.org/projects/campsite/wiki/FixDatabaseEncoding

    Basicly I get "ä" when it should be "
  • Hi,

    The fixed described on this page:
    http://code.campware.org/projects/campsite/wiki/FixDatabaseEncoding

    is valid for any Campsite version.

    Mugur

    On Mon, Feb 9, 2009 at 2:27 PM, Generare Management Department <
    management@generare.com> wrote:

    > Hi,
    > thanks a lot! It worked (tried with Finnish language) and of course I'll
    > need to make a list of languages there to always get the language that
    > current article has been translated to.
    >
    > One further question about languages:
    > it seems that I have some encoding issue on the site with Finnish and
    > Swedish.
    > We are running 3.1.2 but is this fix below valid for that too?
    > http://code.campware.org/projects/campsite/wiki/FixDatabaseEncoding
    >
    > Basicly I get "ä" when it should be "ä" (ä) and "ö" when it should
    > be "ö" (ö).
    > So, looks quite messy.
    >
    > Didn't start to make the Database fix because I don't actually have access
    > to run commands in a shell.
    >
    > G
    >
    > On 4.2.2009, at 16.12, Mugur Rus wrote:
    >
    > Hi,
    >
    > First you must make sure that the issue and the article that were
    > translated are published.
    >
    > E.g.: if you translated an article from English to Swedish Campsite will
    > automatically create the Swedish translations of the article issue and
    > section. Publish the Swedish issue and the Swedish translation of the
    > article.
    >
    > Use the translated_to() function in order to find out if an
    > article was translated to a certain language. See this page:
    > http://code.campware.org/manuals/campsite/3.1/index.php?id9
    >
    > E.g.:
    > {{ if $campsite->article->translated_to('sv')
    > && $campsite->language->code != 'sv' }}
    > {{ local }}
    > {{ set_language name="Swedish" }}
    > Swedish translation
    > {{ /local }}
    > {{ /if }}
    >
    > Very important: because of a bug I just discovered for this to work you
    > must set:
    >
    > 1. the Swedish issue "URL name" must be the same with the English issue
    > "URL name" (see also
    > http://code.campware.org/manuals/campsite/3.1/index.php?id3)
    > 2. the Swedish section "URL name" must be the same with the English
    > section "URL name" (see also
    > http://code.campware.org/manuals/campsite/3.1/index.php?id4)
    >
    > I'll let you know when I fix this bug so you can set different URL names
    > for different translations.
    >
    > Mugur
    >
    > On Wed, Feb 4, 2009 at 12:28 PM, Generare Management Department <
    > management@generare.com> wrote:
    >
    >> Hi,
    >>
    >> I tried to make a list in the article-content.tpl like this:
    >>
    >> {{ list_articles length="10" ignore_language="true" }}
    >>

    >>

    Related languages


    >>

    >> {{ /list_articles }}
    >>
    >> I'm not sure if the "ignore_language="true" means that it should list all
    >> the languages or what does it mean.
    >> If I have an article "Winter day" in English, how do I make a list of
    >> article translations in the end of this article?
    >>
    >> It can't be hard-coded per article but dynamic that it always dig the
    >> translations for the article.
    >> Earlier when reading the feature list I understood this would be somewhat
    >> simple with this system.
    >> Maybe it is but there are no examples how to do it. Just getting desperate
    >> here.
    >>
    >> G
    >>
    >>
    >> On 3.2.2009, at 8.19, Generare Management Department wrote:
    >>
    >> Hi!
    >>>
    >>> If I have an article that I translate in another language, what is the
    >>> normal way of viewing it?
    >>> It is quite logical how to translate it in admin but can't get it visible
    >>> anywhere. I'm using the template 4 as modified for the site.
    >>>
    >>> I would like to have an article in default language and in itself some
    >>> link for other language available (a flag for example), not the whole site
    >>> because the whole site would never been in all languages available anyway.
    >>>
    >>> Br, Gene
    >>>
    >>
    >> Generare Oy,
    >> Management Department
    >>
    >> Y-tunnus: 0916805-3
    >> Helsinki, Finland
    >> http://www.generare.com
    >> mailto:management@generare.com
    >> Tel. +358 50 5149025
    >> Fax +358 50 78000574
    >>
    >>
    >>
    >>
    >
    > Generare Oy,
    > Management Department
    >
    > Y-tunnus: 0916805-3
    > Helsinki, Finland
    > http://www.generare.com
    > mailto:management@generare.com
    > Tel. +358 50 5149025
    > Fax +358 50 78000574
    >
    >
    >
    >
  • Ok, then I dare to try it! Smile

    G

    On 12.2.2009, at 14.08, Mugur Rus wrote:

    > Hi,
    >
    > The fixed described on this page:
    > http://code.campware.org/projects/campsite/wiki/FixDatabaseEncoding
    >
    > is valid for any Campsite version.
    >
    > Mugur
    >
    > On Mon, Feb 9, 2009 at 2:27 PM, Generare Management Department > > wrote:
    > Hi,
    >
    > thanks a lot! It worked (tried with Finnish language) and of course
    > I'll need to make a list of languages there to always get the
    > language that current article has been translated to.
    >
    > One further question about languages:
    > it seems that I have some encoding issue on the site with Finnish
    > and Swedish.
    > We are running 3.1.2 but is this fix below valid for that too?
    > http://code.campware.org/projects/campsite/wiki/FixDatabaseEncoding
    >
    > Basicly I get "ä" when it should be "
  • Backup your Campsite instance first!

    On Thu, Feb 12, 2009 at 2:42 PM, Generare Management Department <
    management@generare.com> wrote:

    > Ok, then I dare to try it! Smile
    > G
    >
    > On 12.2.2009, at 14.08, Mugur Rus wrote:
    >
    > Hi,
    >
    > The fixed described on this page:
    > http://code.campware.org/projects/campsite/wiki/FixDatabaseEncoding
    >
    > is valid for any Campsite version.
    >
    > Mugur
    >
    > On Mon, Feb 9, 2009 at 2:27 PM, Generare Management Department <
    > management@generare.com> wrote:
    >
    >> Hi,
    >> thanks a lot! It worked (tried with Finnish language) and of course I'll
    >> need to make a list of languages there to always get the language that
    >> current article has been translated to.
    >>
    >> One further question about languages:
    >> it seems that I have some encoding issue on the site with Finnish and
    >> Swedish.
    >> We are running 3.1.2 but is this fix below valid for that too?
    >> http://code.campware.org/projects/campsite/wiki/FixDatabaseEncoding
    >>
    >> Basicly I get "ä" when it should be "ä" (ä) and "ö" when it should
    >> be "ö" (ö).
    >> So, looks quite messy.
    >>
    >> Didn't start to make the Database fix because I don't actually have access
    >> to run commands in a shell.
    >>
    >> G
    >>
    >> On 4.2.2009, at 16.12, Mugur Rus wrote:
    >>
    >> Hi,
    >>
    >> First you must make sure that the issue and the article that were
    >> translated are published.
    >>
    >> E.g.: if you translated an article from English to Swedish Campsite will
    >> automatically create the Swedish translations of the article issue and
    >> section. Publish the Swedish issue and the Swedish translation of the
    >> article.
    >>
    >> Use the translated_to() function in order to find out if an
    >> article was translated to a certain language. See this page:
    >> http://code.campware.org/manuals/campsite/3.1/index.php?id9
    >>
    >> E.g.:
    >> {{ if $campsite->article->translated_to('sv')
    >> && $campsite->language->code != 'sv' }}
    >> {{ local }}
    >> {{ set_language name="Swedish" }}
    >> Swedish translation
    >> {{ /local }}
    >> {{ /if }}
    >>
    >> Very important: because of a bug I just discovered for this to work you
    >> must set:
    >>
    >> 1. the Swedish issue "URL name" must be the same with the English
    >> issue "URL name" (see also
    >> http://code.campware.org/manuals/campsite/3.1/index.php?id3)
    >> 2. the Swedish section "URL name" must be the same with the English
    >> section "URL name" (see also
    >> http://code.campware.org/manuals/campsite/3.1/index.php?id4)
    >>
    >> I'll let you know when I fix this bug so you can set different URL names
    >> for different translations.
    >>
    >> Mugur
    >>
    >> On Wed, Feb 4, 2009 at 12:28 PM, Generare Management Department <
    >> management@generare.com> wrote:
    >>
    >>> Hi,
    >>>
    >>> I tried to make a list in the article-content.tpl like this:
    >>>
    >>> {{ list_articles length="10" ignore_language="true" }}
    >>>

    >>>

    Related languages


    >>>

    >>> {{ /list_articles }}
    >>>
    >>> I'm not sure if the "ignore_language="true" means that it should list all
    >>> the languages or what does it mean.
    >>> If I have an article "Winter day" in English, how do I make a list of
    >>> article translations in the end of this article?
    >>>
    >>> It can't be hard-coded per article but dynamic that it always dig the
    >>> translations for the article.
    >>> Earlier when reading the feature list I understood this would be somewhat
    >>> simple with this system.
    >>> Maybe it is but there are no examples how to do it. Just getting
    >>> desperate here.
    >>>
    >>> G
    >>>
    >>>
    >>> On 3.2.2009, at 8.19, Generare Management Department wrote:
    >>>
    >>> Hi!
    >>>>
    >>>> If I have an article that I translate in another language, what is the
    >>>> normal way of viewing it?
    >>>> It is quite logical how to translate it in admin but can't get it
    >>>> visible anywhere. I'm using the template 4 as modified for the site.
    >>>>
    >>>> I would like to have an article in default language and in itself some
    >>>> link for other language available (a flag for example), not the whole site
    >>>> because the whole site would never been in all languages available anyway.
    >>>>
    >>>> Br, Gene
    >>>>
    >>>
    >>> Generare Oy,
    >>> Management Department
    >>>
    >>> Y-tunnus: 0916805-3
    >>> Helsinki, Finland
    >>> http://www.generare.com
    >>> mailto:management@generare.com
    >>> Tel. +358 50 5149025
    >>> Fax +358 50 78000574
    >>>
    >>>
    >>>
    >>>
    >>
    >> Generare Oy,
    >> Management Department
    >>
    >> Y-tunnus: 0916805-3
    >> Helsinki, Finland
    >> http://www.generare.com
    >> mailto:management@generare.com
    >> Tel. +358 50 5149025
    >> Fax +358 50 78000574
    >>
    >>
    >>
    >>
    >
    > Generare Oy,
    > Management Department
    >
    > Y-tunnus: 0916805-3
    > Helsinki, Finland
    > http://www.generare.com
    > mailto:management@generare.com
    > Tel. +358 50 5149025
    > Fax +358 50 78000574
    >
    >
    >
    >